<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page import="com.bci.pwtz.controller.AbstractController"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/user/common.jsp"%>
<%@ page import="com.bci.pwtz.mysql.model.Zygt" %>
<%@ page import="com.bci.pwtz.service.ZygtService" %>
<%
String pdbyqid = request.getParameter("deviceid");
String pdbyqtype = "2";
if(request.getParameter("devicetype")!=null)
	pdbyqtype = request.getParameter("devicetype");

String deviceid=request.getParameter("deviceid");
String sign=request.getParameter("flag");
String linecode="";
boolean tab=false;
if(deviceid!=null){
    tab=true;
    session.setAttribute("deviceid", deviceid);
    ZygtService service=(ZygtService)SpringUtil.getBean("zygtService");
    Zygt device=service.load(deviceid);
    if(device!=null){
        linecode=device.getLinecode();
    }
}else if(session.getAttribute("deviceid")!=null&&sign==null){
    tab=true;
    ZygtService service=(ZygtService)SpringUtil.getBean("zygtService");
    deviceid=(String)session.getAttribute("deviceid");
    Zygt device=service.load(deviceid);
    if(device!=null){
        linecode=device.getLinecode();
    }
}else if(sign!=null){
    session.removeAttribute("deviceid");
}
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>配网数据-柱上变压器</title>
<link href="<%=basePath %>user/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath %>user/css/llcss.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<%=basePath %>js/jquery/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/hd_ll.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/common.js"></script>
<script type="text/javascript">
var deviceid='<%=deviceid%>';
var pdid = "<%=pdbyqid%>";
var pdtype = "<%=pdbyqtype%>";
</script>
<script type="text/javascript" src="<%=basePath %>user/d/js/zsbyqlist.js"></script>
</head>
<body bgcolor="white">
	<%@ include file="/user/head.jsp"%>
	<div class="pwsj_cont_box">
	<%@ include file="/user/left.jsp"%>
	<!-- 右侧内容_begin -->
	<div class="pwsj_cont_right_box">
		<!-- 变压器_begin -->
		<div class="pwsj_right_byq">
			<div class="pwsj_right_byq_position">
			<a class="position" href="<%=basePath %>user/m/index.jsp">配网数据</a>&gt;
			<a class="position" href="<%=basePath %>user/d/zsbyqlist.jsp">柱上变压器</a>
			<%if(deviceid!=null){ %>
				<a class="right" href="<%=basePath %>user/z/zygtlist.jsp?deviceid=<%=linecode%>&t=<%=System.currentTimeMillis() %>">返回</a>
			<%}else{ %>
				<a class="right" href="<%=basePath %>user/d/zsbyqlist.jsp?t=<%=System.currentTimeMillis() %>">返回</a>
			<%} %>
		</div>
			<!-- 变压器列表查询条件_begin -->
			<form action="" method="" type="" class="pwsj_byq_choose_form">
				<div class="pwsj_byq_choose">
					<div class='left'>
					<jsp:include page="/user/d/inc/dylevel1.jsp" flush="true" > 
			             <jsp:param name="deviceType" value="2" />
					</jsp:include>
						<%if(tab&&(lowaddaction)){%>
							<a href="<%=basePath%>user/d/zsbyqadd.jsp?deviceid=<%=deviceid%>&label=1">添加</a>
						<%}
							if(cadqueryaction){
						%>
							<input class="btn" type="button" value="单线图" onclick="exportcad(2)" />
						<%} %>
					</div>
					<div class='right'>
						<input type="text" id="deviceName" name="devicename" maxlength="100" class="keywords" placeholder="请输入关键字搜索" />
						<input class="submit" type="button" onclick="goToPage(1)" value="搜索" />
					</div>
					<div class="clear"></div>
				</div>
			</form>
			<!-- 变压器列表查询条件_end -->
			<div id="exportimg" style="display:none;" class="progress_bar">
				<p>正在生成单线图，请您稍后...</p>
				<div class="gif"><img alt="" src="../images/downloading.gif">&nbsp;&nbsp;</div>
			</div>
			<!-- 变压器列表查询结果_begin -->
			<div class="pwsj_right_byq_cont_title">
				<!-- 标题_begin -->
				<ul class="byq_title_ul">
					<li style="width:4%;"><input type="checkbox" class="checkbox" onclick="selectAll()"/></li>
					<li style="width:13%;">设备名称</li>
					<li style="width:8%;">运行状态</li>
					<li style="width:10%;">所属线路</li>
					<li style="width:8%;">所属杆塔</li>
					<li style="width:8%;">使用性质</li>
					<li style="width:8%;">是否农网</li>
					<li style="width:4%;">型号</li>
					<li style="width:6%;">额定容量</li>
					<li style="width:30%;">操作</li>
				</ul>
				<!-- 标题_end -->
				<!-- 结果_begin -->
				<div class="pwsj_right_byq_divbox">
				</div>				
				<!-- 结果_end -->
			</div>
			<!-- 变压器列表查询结果_end -->

			<!-- 分页列表_begin -->
			<div class="page_list_box">
				<!-- 左侧按钮_begin -->
				<div class="page_list_box_left">
				<%if(loweditaction||isSuper){ %>
						<a class="dels_btn" onclick="gobatchupdate(<%=AbstractController.柱上变压器 %>,this)">批量修改</a>
					<%}
					if(lowdeleteaction||isSuper){
					%>
					<input class="dels_btn" onclick="batchdevicedel('zsbyq');" type="button" value="批量删除" />
					<%} %>
				</div>
				<!-- 左侧按钮_end -->
				<!-- 右侧分页_begin -->
				<div class="page_list_box_right">
					<div class="page">
			            <a >首页</a>
			            <a >上一页</a>
			            <a class="intro" >1</a>
			            <a >下一页</a>
			            <a >末页</a>
	    			</div>
				</div>
				<!-- 右侧分页_end -->
				<div class="clear"></div><!-- 清除左右浮动 -->
			</div>
			<!-- 分页列表_end -->
		</div>	
		<!-- 变压器_end -->
	</div>
	<!-- 右侧内容_end -->
	<div class="clear"></div><!-- 清除左右浮动 -->

	</div>
	<!--main end-->
<%@ include file="/user/foot.jsp"%>
</body>
</html>
